<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>视频播放</title>
     <link href="https://cdn.bootcss.com/video.js/7.7.6/alt/video-js-cdn.min.css" rel="stylesheet">
     <script src="https://cdn.bootcss.com/video.js/7.7.6/alt/video.core.min.js"></script>
<script src="/plugins/videojs/videojs-contrib-hls.js"></script>
</head>
<body>
<video id=example-video width=800 height=600 class="video-js vjs-default-skin vjs-big-play-centered" controls >
    <source
            src="http://www.xuecheng.com/video/白蛇缘起/白蛇缘起/a642603e33770f899bd891569a9171b2.m3u8"
            type="application/x-mpegURL">
</video>
<input type="button" onClick="switchvideo()" value="switch"/>


<script>
    var player = videojs('example-video');
  
</script>

</body>
</html>
